package com.itheima.d7_IO.FileReader02;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;

public class Test {
    public static void main(String[] args) throws Exception {
        Reader fileReader = new FileReader("E:\\FileResource\\Test.txt");
        // 装桶
        char[] chars = new char[1024];  //读1024个字符
        int len ; //读了多少个字符
        while ((len = fileReader.read(chars)) != -1) {
            String s = new String(chars,0,len);
            System.out.print(s);
        }
    }
}
